﻿using System;

class SelectionSort
{
    static void Main()
    {
        int[] array = { 45, 5, -67, -1, 0, 3456789, 3, 4, 567, 10 };

        for (int i = 0; i < array.Length - 1; i++)
        {
            for (int k = i + 1; k < array.Length; k++)
            {
                if (array[i] > array[k])
                {
                    int temp = array[i];
                    array[i] = array[k];
                    array[k] = temp;
                }
            }
        }

        Console.WriteLine("The array is sorted in ascending order:");

        for (int i = 0; i < array.Length; i++)
        {
            Console.WriteLine("[{0}] --> {1}", i, array[i]);
        }
    }
}